<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <div th:include="common/css::css"></div>
</head>
<body>
<!-- loader Start -->
<div id="loading">
    <div id="loading-center">
    </div>
</div>
<!-- loader END -->
<!-- Sign in Start -->
<section class="sign-in-page">
    <div class="container bg-white mt-5 p-0">
        <div class="row no-gutters">
            <div class="col-sm-6 align-self-center">
                <div class="sign-in-from">
                    <h1 class="mb-0">登录</h1>
                    <p>请输入你的邮箱和密码来登录系统</p>
                    <p style="color: red" th:text="${str}" th:if="${not #strings.isEmpty(str)}"></p>
                    <form class="mt-4" method="post" th:action="@{/login}">
                        <div class="form-group">
                            <label for="email">邮件地址</label>
                            <input type="text" class="form-control mb-0" id="email" name="email" placeholder="输入邮件地址">
                        </div>
                        <div class="form-group">
                            <label for="password">密码</label>
                            <a th:href="@{#}" class="float-right">忘记密码?</a>
                            <input type="password" class="form-control mb-0" id="password" name="password" placeholder="密码">
                        </div>
                        <div class="d-inline-block w-100">
                            <div class="custom-control custom-checkbox d-inline-block mt-2 pt-1">
                                <input type="checkbox" class="custom-control-input" id="customCheck1">
                                <label class="custom-control-label" for="customCheck1">记住我</label>
                            </div>
                            <button type="submit" class="btn btn-primary float-right">登录</button>
                        </div>
                        <div class="sign-info">
                            <span class="dark-color d-inline-block line-height-2">没有账号？<a th:href="@{/register}">请注册</a></span>
                            <ul class="iq-social-media">
                                <li><a href="#"><i class="ri-facebook-box-line"></i></a></li>
                                <li><a href="#"><i class="ri-twitter-line"></i></a></li>
                                <li><a href="#"><i class="ri-instagram-line"></i></a></li>
                            </ul>
                        </div>
                    </form>
                </div>
            </div>
            <div class="col-sm-6 text-center">
                <div class="sign-in-detail text-white">
                    <a class="sign-in-logo mb-5" href="#"><img th:src="@{/images/logo-white.png}" class="img-fluid" alt="logo"></a>
                    <div class="owl-carousel" data-autoplay="true" data-loop="true" data-nav="false" data-dots="true" data-items="1" data-items-laptop="1" data-items-tab="1" data-items-mobile="1" data-items-mobile-sm="1" data-margin="0">
                        <div class="item">
                            <img th:src="@{/images/login/1.png}" class="img-fluid mb-4" alt="logo">
                            <h4 class="mb-1 text-white">管理学生</h4>
                            <p>毫无疑问这是一个简单的学生管理系统</p>
                        </div>
                        <div class="item">
                            <img th:src="@{/images/login/1.png}" class="img-fluid mb-4" alt="logo">
                            <h4 class="mb-1 text-white">管理学生</h4>
                            <p>毫无疑问这是一个简单的学生管理系统</p>
                        </div>
                        <div class="item">
                            <img th:src="@{/images/login/1.png}" class="img-fluid mb-4" alt="logo">
                            <h4 class="mb-1 text-white">管理学生</h4>
                            <p>毫无疑问这是一个简单的学生管理系统</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
<div th:include="common/js::js"></div>
</body>
</html>